Adding task to dump internal state. Added state for x-regs.