Change 'allVoted' functionality to be more general