Updated NewParser() to report read errors.