Add mkChanStream function