Change the stream dinamically