Modified the pipeline