Added basic connecting and disconnecting capabilities