Add exponential moving average. Add mail alert