 				@_parent = null
 
 			peer.role = Peer.Role.Child
+			if @getChildren().length > 2
+				@generateToken()
 
 		# Removes a peer as child node. Does not automatically close 
 		# the connection but will make it a normal peer.

					@addSibling(peer)
				else
					peer = @connect(peerId)
					peer.once('connect', =>
						@addSibling(peer)
					)


		#
		addPeer: ( peer ) ->
			peer.on('disconnect', ( ) => @removePeer(peer))
			peer.on('peer.addSibling', ( ) => @addSibling(peer, false); console.log peer.id)

			@_peers.add(peer)
			@trigger('peer.added', peer) # 

		# Removes a peer from the peer list
		#
