Added outlier detection