Added log line with notation for first and second iterators, I think I should use a functional method instead of layering all these for loops and running into issues with duplication, scope, etc