Working pipeline script