How do unique IDs work?

Oh, and I changed some stuff.