Adding code to remote control