Refactor pipeline steps 1-6, add initial thresholds for gse