public void initNextButton() {
		frame.getNextButton().setOnAction(new EventHandler<ActionEvent>() {
			@Override public void handle(ActionEvent actionevent) {
				try {
					if (step) {
						if (index < commands.size()) {
							parseLine(commands.get(index));
							String skipcheck = commands.get(index).substring(0, 2);
							if (skipcheck.equals("SC")||skipcheck.equals("SG")||skipcheck.equals("SR")) {
								index++;
								parseLine(commands.get(index));
							}
							index++;
						}
						else {
							frame.postMessage("Drawing Complete. " +
									"No further drawing commands available.\n");
						}
					}
					else {
						if (!stepNotif)
							frame.postMessage("Input: Step through has not been enabled.\n");
						processCommands();
					}
				} catch (ParseException e) {
					frame.postMessage("Parse Exception: " + e.getMessage() +"\n");
					return;
				} catch (FileNotFoundException e) {
					frame.postMessage("FileNotFound Exception: " + e.getMessage() +"\n");
				}
			}
		});
	}