Added convolution sampling function