Put back key generation