Added API for elections