Add version check
Merge pull request #2 from dcz/master

Add version check