Removing creation of pipe in main