Implement MasterElection

Good spot, thanks!