Created search functionality.