Finished search implementation.