Code to run devices in the office