Unify the list processing with qb_list function