Update implementation of updateName()