Added temporary debug logging.