Slightly altered logging.