Revert "Removed unnecessary affect_total() from handler.c"

This reverts commit cd65d3355aa6b84e6bed64958cd8709dfff9b50f. I guess those were necessary after all!