Updated pipeline script