Some changes to logging.