Add renameWithMetadata