Implement MasterElection

Mention that in the comment?