Implements basic search.