https://blog.wisefaq.com/2008/09/16/primalscript-uses-streams/