BatchSampling stats custom lib added