Add binary check.
Merge pull request #4 from hunzinker/binary-check

Add binary check.