Replaces all forEach callbacks with for loops for great justice.