Added moving average option