Thank you, I did discover that command, however, I have no idea how or where to use it as the example in the reference you gave is totally different to what I am doing.
I will leave the code in the main body for the time being, it is just untidy and I don’t like doing so.
I was hoping Julia was ‘better’ than other languages and would not have all these weird issues going on everywhere ![]()