Changed the pipeline code