Implemented very simple connecting/disconnecting logic