Lots of debug code, be cautious