Added statistical outlier removal