Adding voting logic