public int addSlave(String addr) {
		SlaveWorker w = new SlaveWorker(addr);
		try {
			slaveList.add(w);
			return 1;
		} catch (Exception e) {
			System.out.println("Unable to add slave " + addr);
			return -1;
		}
	}