Pseudo-streaming function

Pseudo-streming functions.
Test: http://jsdo.it/ange305/5IHE