Rewrote assignName().