Allow for passing in stream handlers.