Modified version of leader election
New HS leader election version