protected void performChoice(int choice) {
		if (choice == 1) {
			HMMDefaultsMenu menu = new HMMDefaultsMenu();
			menu.run();
		}
		else if (choice == 2) {
			HMMConstructionMenu menu = new HMMConstructionMenu();
			menu.run();
			hmm = menu.getHMM();
		}
		else if (choice == 3) {
			if (this.hmm != null) {
				HMMUpdateMenu menu = new HMMUpdateMenu(this.hmm);
				menu.run();
				hmm = menu.getHMM();
			}
		}
		else if (choice == 4) {
			if (this.hmm != null) {
				int count = getInteger("How many entries?");
				HMMSequenceGenerator.createSequenceFromHMM(hmm, count);
			}
		}
		else if (choice == 5) {
			if (this.hmm != null && this.hmm.getStateSequence() != null) {
				HMMDecodingMenu menu = new HMMDecodingMenu(this.hmm);
				menu.run();
			}
		}
	}