public Modifier toModifier()
	{
		ArrayList<Assignment> realAssignments = new ArrayList<Assignment>();
		for (ParseAssignment pa : assignments)
		{
			realAssignments.add(pa.toAssignment());
		}
		if (type.equals("Perlin"))
			return new PerlinModifier(identifier,realAssignments);
		if (type.equals("WeightedPerlin"))
			return new WeightedPerlinModifier(identifier,realAssignments);
		if (type.equals("Metaball"))
			return new MetaballModifier(identifier,realAssignments);
		if (type.equals("Voronoi"))
			return new VoronoiModifier(identifier,realAssignments);
		if (type.equals("Worley"))
			return new WorleyModifier(identifier,realAssignments);
		try {
			ExceptionLogger.logException(new IllegalModifierType(type), LoggerLevel.ERROR);
		} catch (CriticalFailure e) {
			//Should not be reachable
		}
		return null;
	}