Implement SampleProcessor.