Leader ellection mechanism added