private int makeByteSelected(AbstractButton... switches) {
		if (switches.length > 8) {
			// No can do
			return 0;
		}
		int initial = 0;
		int state = 1;
		for (AbstractButton b : switches) {
			initial |= b.isSelected() ? state : 0;
			state *= 2;
		}
		return initial;
	}