Create better unique IDs so they don't repeat every short while.
Improved id generation to avoid duplicates.