Reworking the addVote method.