Factoring out logging.