Modified the logging.