Corrected the device method.