public static int flagsCheck(IOFlags flags) {
		int output = 0;
		
		if (flags.PRODUCE) {
			if (flags.LOAD)
				output = 1;
		}
		
		if (flags.SAVE) {
			if (!flags.PRODUCE)
				output = 2;
		}
		
		if (flags.LOAD) {
			if (flags.PRODUCE || flags.SAVE)
				output = 3;
		}
		
		return output;
	}