Moved metadata to beginning of file for streaming