Add elected state and ELECT handler