 		_lookForBetterSupernode: () =>
 			siblings = @getSiblings()
 			children = @getChildren()
-			childrenLength = children.length
-			if @isSuperNode and siblings.length > 0 and childrenLength > 0
+			if @isSuperNode and siblings.length > 0 and children.length > 0
 				for child in children
 					bestCandidateDistance = null
 					for parent in siblings

		# @param superNode [boolean] SuperNode state
		#
		setSuperNode: ( superNode = true ) =>
			@server.emit('setSuperNode', superNode)
			@trigger('setSuperNode', superNode) # App is listening
			@broadcast('peer.setSuperNode', @id, superNode)
			@isSuperNode = superNode
			if superNode
				@_triggerStaySuperNodeTimeout()
			else
				for sibling in @getSiblings()
					@removeSibling(sibling)
				@_pickParent()

		_triggerStaySuperNodeTimeout: () =>
			if @getChildren().length is 0

		# @param nodeId [String] Node id of the candidate
		#
		_onTokenCandidate: ( peer, distance, nodeId ) =>
			if @token?
				unless @token.candidates?
					@token.candidates = new Array()
				candidate = new Object()
				candidate.distance = distance
				candidate.nodeId = nodeId
				@token.candidates.push(candidate)

		# Picks a new owner of the token. If the new owner is self, then it becomes a supernode
		#
		# @return[Node] Return a new owner of the token
		#
		_pickNewTokenOwner: ( ) ->
			if @token?
				bestCandidateDistance = null
				for candidate in @token.candidates ? []
					if !bestCandidateDistance? or candidate.distance < bestCandidateDistance
						bestCandidateDistance = candidate.distance
						bestCandidate = candidate

				if bestCandidate
					console.log "Best Candidate is " + bestCandidate.nodeId + " with distance " + bestCandidateDistance
					if bestCandidate.nodeId is @id
						if not @isSuperNode
							@setSuperNode(true)
					else
						@emitTo(bestCandidate.nodeId,'token.add', @token.serialize())
						@token = null
						if @isSuperNode
							@setSuperNode(false)
				else
					if not @isSuperNode
						@setSuperNode(true)

		# Applies Vivaldi alghoritm. Calculates the coordinates of a node
		#
