Added failsafe for repeated assignment numbers.