Adding some debug code.