Added iteration over mods and submods.