Added some debugging code.