Add definition of SampleFilter