Adding leaderElection to accountManager