Added some code to track checks.  It's not complete, though.