Rename hash to query now that we use query params for flags.