Restoring a stream