New method to get the device identifier