Updates to query