Adding some debugging code.