Refactoring oxchkversion