Added logging of search terms