Add generating into a stream.