public void parseCommand(String command) {
		//Split command based on space
		String[] words = command.split(" ");
		
		//First word is the process/command
		String com = words[0];
		
		//Remaining words are process arguments
		String[] args = new String[words.length - 1];
		
		MigratableProcessWrapper mpw = null;
		
		for (int i = 1; i < words.length; i++) {
			args[i-1] = words[i];
		}
		
		if (com.equals("-c") && args.length == 1) {
			//Connect as slave command
			if (isMaster) {
			  connectAssSlave(args[0]);
			} else {
				System.out.println("Already connected as slave");
			}
		} else if (com.equals("ps") && words.length == 1) {
			//Print processes command
			pr.printProcesses();
		} else if (com.equals("quit") && words.length == 1) {
			//Quits the ProcessManager
			quitPM();
		} else {
			//Attempts to start a process with the command
			if((mpw = acceptProcess(com, args)) != null) {
				mpw.setName(command);
				addProcess(mpw);
			}
		}
	}