Add debug code into metropolis.