Move stuff into logging.