Made the pipeline parallelism similiar to the task parallelism