Updated functions to be election specific