Integration with ITHIM code by https://github.com/syounkin/ITHIM this is clearly a big issue and will need planning and breaking down into substeps