Change deviceID to hash