Better debug logging.