Began to write routines for remotecontrolled state