Adding the ability to create a custom stream class from a stream factory