Kurt's DIY remote control code