Vote function added. Please merge.