Make input and output streams configurable.
Basic passing test.