Implement sample sampling.