@Override
	public void run() {
		while (!stop) {
			if ((activeMode && connections.size() < Options.getInstance().getInt("network.activeMode.maxConnections"))
					|| (!activeMode && connections.size() < Options.getInstance().getInt(
							"network.passiveMode.maxConnections"))) {
				NetworkAddressMessage m = datastore.getRandomNode(1); // TODO
																		// Add
																		// multi
																		// stream
																		// management
				Connection c = new Connection(m.getIp(), m.getPort(), m.getStream(), this, nonce);
				connections.add(c);
			}

			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
			}
		}
	}