Added the search function.