Improved corpse’s stability, and added corpse debug mode