Re-generate metadata