Improved interface for sampling.