Added debugging stuff.