Unique id generation.