Added logging for searching.