Define methods on pipe instead of *pipe