Made check_upgraded_version() work