Attach two streams, so that the second one receives data only after the first one finishes and sends data only after the first one ends.