Changed the SecectOutlier function, this function should be checked more tomorrow.