private void bindToRegistry(int asId) throws RemoteException
	{
		serverId = asId;
		boolean bound = false;
		while (!bound) {
			print("Attempting to bind to registry as server" + serverId + "...");
			try {
				registryProxy.bind("server" + serverId, this);
				bound = true;
			} catch (AlreadyBoundException abe) {
				println("ID recently taken.");
				lookUpServer("server" + serverId);
				serverId++;
			}
		}
		println("Succeeded.");
	}