Restored the voting functionality since it got accidentally deleted