Got connecting/disconnecting  working.