Sampler API changed