Implemented search functionality