Added secret generation.