Changes for logging.