Add an output stream

This will be used for the datastore API.