Update device.lua