Add pipe creation.
Simplify buffering for now.