Add version field to metadata