Fixed function dependency check
Only comments....
Added the field 'Status_is_final' to query