Configuring the stream