Removed a lot of debugging stuff.