Fixed backwards compatibility of streams API.