Allow lookups to only run certain queries