Added some debug code