Fixed query string with global attribute -- should eventually refactor.