Add more logging around the search terms