Halfway through abstracting iterative GLMs to its own function.