Figured out iteration over groups and data sets