public void sendTeamAndScheduleInfo() {
		sendCommand("clearSched");
		if(control.teams != null) {
			for(Team t : control.teams.toArray()) {
				sendCommand("addTeam=" + t.number + "," + t.name);
			}
		}
		if(control.schedule != null) {
			String setTablesCMD = "setTables=";
			for(String name : control.schedule.tableNames)
				setTablesCMD += name + ",";
			sendCommand(setTablesCMD);
			sendCommand("setTPT=" + control.schedule.teamsPerTable);
			
			Match[] matches = control.schedule.toArray();
			for(int matchNum = 0; matchNum < matches.length; matchNum++) {
				Match m = matches[matchNum];
				for(int table = 0; table < control.schedule.numTables; table++) {
					if(m.getTeamsOnTable(table) != null) {
						for(Team t : m.getTeamsOnTable(table)) {
							sendCommand("assignMatch=" + matchNum + "," + t.number + "," + table);
						}
					}
				}
			}
		}
	}