Adjusted chunked streams to changes in stream API.