Adding some debugging stuff