Working apriori_gen, TID and normal.