Adding more debug outputs for key generation.
Still trying to work out the key generation.