Extract id generation