We added arguments sample.size and n.keep