Add a detect_latest_version
Use detect_latest_version