Yes, regenerateId is the best.