Add subsetting code.