protected Object initialInput(Component component, String title) {
        if(title.equals("")) title = "Input";
        if(getObject() instanceof TuringMachine){
    		// Do the multitape stuff.
    		TuringMachine tm = (TuringMachine) getObject();       
    		int tapes = tm.tapes();
            if(title.equals("Expected Result? (Accept or Reject)")){
                title = "Result";
                tapes = 1;
            }
            if(title.equals("Expected Output?")){
                title = "Output";
            }
    		return openInputGUI(component, title, tapes);
        }
        else{
            if (title.equals("")){
            	return openInputGUI(component, "Input?", 0);
                //return JOptionPane.showInputDialog(component, "Input?");
                
            }
            else
            {
            	return openInputGUI(component, title, 0);
            	//return JOptionPane.showInputDialog(component, title+ "?!!!!");
            }
        }
	}