Add in logging.