Added search functionality.