Add name field to metadata