Add random key generation