Added a streamsource to simplify stream input.