Moving Average Filter for vi timing