Change sanity check to actually check sanely
Merge pull request #29 from tms/sanity-check

Change sanity check to actually check sanely