Added stream method to the generator interface