Better id generation.