Added implementation for getDeviceId and setDeviceId