Implemented voting for proposals.