Added nonce checking.