Added deviceQuery