Added MaxSamples