Modify stream implementation.