public String generate() {
		String error = "No errors.";
		
		if (details)
			System.out.println("Biomes flags: PRODUCE="+ioflags.PRODUCE+", SAVE="+ioflags.SAVE+", LOAD="+ioflags.LOAD);
		
		if (Utils.flagsCheck(ioflags) != 0) {
			System.out.println("ERROR: IOFlags object is corrupted, error: "+Utils.flagsCheck(ioflags));
			return "BiomesGenerator critical error - read above.";
		}
		
		if (ioflags.PRODUCE)
			error = produceBiomes();
		
		if (ioflags.LOAD)
			error = loadBiomes();
		
		return error;
	}