Added the voting functionality since it got accidentally deleted.