Streams

Initial implementation of streams.