US702 Added some debug and error logging.