Get the search queries right.