Added exponential moving average update