Added codes for the remote control