Using Cluster Singleton Pattern to implement master.