...also, if this for loop, and code before it are just doing "setup", can that please be put into it's own function...? Maybe it can't, or shouldn't... I'll leave that up to you. But, just to help break this function down.