Add stream support

Closes #2