Added sub choose_version(). Will be used in probe