Fixed some minor issues with the pipeline script