Fleshing out the stream manipulation step