Add logging.