API for remote control