VS2.1.3 - Added logging to help determine where internal error is occurring.