private synchronized void addNearNodes(Hashtable<Node, Integer> distHash, int radius) throws TGException {
		for (int r = 0; r < radius + 1; r++) {
			Enumeration<Node> localNodes = distHash.keys();
			while (localNodes.hasMoreElements()) {
				Node n = localNodes.nextElement();
				if (!locality.contains(n) && distHash.get(n).intValue() <= r) {
					n.massfade = 1;
					n.justMadeLocal = true;
					locality.addNodeWithEdges(n);
					if (!fastFinishShift) {
						try {
							if (radius == 1)
								Thread.sleep(50);
							else
								Thread.sleep(50);
						} catch (InterruptedException ex) {
						}
					}
				}
			}
		}
	}