Started to implement connect and disconnect