Rework OFStream API.