Added implementation of block::attachAnchor()