Works now! Also lots of more debugging stuff.