More problems, and discovered how badly I was abusing mathematica. I should fix those later...