Generate unique ID.