Added stream implementation.