Added timeout for private key generator