Vote function added