set_name now occurs before set_parent.