Added asserts to check for parsing errors