Adding some additional debug logging.