Added private key functionality