Use different temporaries for WriteDownCount and Comp_Generic to prevent conflicts.
Also increase nextExit where needed.