Added sampler class.