Seve - i've been rewriting that code for hours, - tscircuit