Tweaks to invert.