DeviceHandler class