Add initial code for streams