Just before implementing pipe functionality