Added Connect/Disconnect and SendData functions