Decode metadata