Added code into device query example