It helps if you don't overwrite the index variable for your outer loop, doesn't it!
It helps if you don't overwrite the index variable for your outer loop, doesn't it!

live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint