Added capability to work with pipes