Update for v4.
Add format key to source metadata.