Adding logic for AttachConnectorStatement