Finish vote function