Partial implementation of search.