Changed to version compare function.