Need to write to metadata