This function doesn't seem to guarantee name uniqueness.