Started working on a new version.
Added function singletonStream.