Still broken - can't work diagram into code. Pain in the arse.