Allow input and output streams to be configured