Completed working of search engine