Fixes issue #37
Open the stream.
Merge pull request #45 from jpdutoit/master

Fixes issue #37