Making version check better