Added HMAC checking.