Added step to generate secret key