Implement threshold on nodes
Implement threshold on nodes