Able to enable/disable moving Average and to set the number of samples for the moving Average