Finished debugging the search engine