Support streams. Fixes #18