Adding HMAC code