Updated vote algorithm