Added private key as optional attribute.