Added random key generator