Thanks
Wasted a whole weekend on this last part

Aaargh