Reworked Haff iteration loops.