Working moving average filter