Moving average is now calculated by convolution with an exponentially decaying weight function with respect to stack depth.