Update the metadata