Add functionality to subset samples.