Highlighting only works for first instance.
Lots of repetition of longs bits of calculation; can't get working in variables -> see comments