Handle metadata