Applying a patch from Lali for generate 'for loops' in the config.