Initial framework for data subsetting