Providing a stream to save data to repository. fixes #4