Changes to queries