Now with logging.