Added statistic adjustments: Average of last values and Ignoring outliers(sudden distant values)