Finished outlier fitering and started main function.