Added the search functionality.