Implemented arbitrary-length piping