Restores version checking code