Adding connected/disconnected/ready methods.