Added some useful debugging stuff