Added preliminary outlier detection, needs some more work