Implemented custom search.