Added some debug code.