Modified get_device_id and get_song method.