Make the effect algorithm clearer (and easier to reverse its direction).