Add check version function