Stuff.
Added additional sanity checks. Incorporated HMAC checks into various operations.