Implements voting.