Add name and generate a UID.