Initial code adapted from MyVote to this new targeted project.