Added functionality to search engine