Cleaning up search.