A lot of debug code