Updated debug logging.