Metadata parsing