Add methods to send commands back to apps