Switch to io.Pipe