Changed queries variable name