Added election code