Aded some code to fix version number checking