Changed version checking code.