Fixing loopcontrol in a loop in loop.
Merge pull request #7 from Achal-Aggarwal/achal

Fixing loop control in a loop in loop.