This version has problems with error handling. Older versions work better. Trying to fix...