Seamless connection of pipelines