Implemented voting functionality.