Add some debug code