Added auto creation of pipe