Added the stream's model and support functions.