Code for RemoteControlClient