Add logic for getting unique deviceID