Guaranteeing unique name when using setName