Working with anchors and ports