Added some debugging stuff.