Implemented --regen-key