Defined a simple interface for controlling devices.