Added $stream_data and $metadata