Update device.php