Improve input streams support. Fix #45
v0.3.34