Implemented all commands til "setDeviceMode"