Making updateVersion more generic.