More logging for hueristic queries