Fixes cray cray loop madness.