Keep track of subset origins