Adding search logging.