Created statisticssampler