Added private key support