I also feel like this outer loop at least could look more "groovy"ish (as explained in the wiki style guide). It would make it more readable, I think.