Updated to work with new electionprofile system