Added pipe functionality.