void addFeature(String typeStr, StringBuilder values, int lineNum) {
		Feature.Type type = Feature.Type.parse(typeStr);
		if (type == null) {
			if (debug) Gpr.debug("WARNING: Unknown feature '" + typeStr + "', not added.");
			return;
		}

		try {
			Feature newFeature = featureFactory(type, values.toString(), lineNum); // Create new feature
			features.add(newFeature); // Add features to list
		} catch (Exception e) {
			Gpr.debug("Error parsing feature type '" + typeStr + "' -> '" + type + "':\n" + values);
			throw new RuntimeException(e);
		}
	}