Altered code to use the ClientVersion enum instead of its number
representations.