Added singleQuery method