Add Pipeline and NextPipeline functions