Moved where "name" is set and actually save changes.