Added PublicKey parameter.