Implemented connection selector.