Modified code to use the ClientVersion enum.