Merge "Refactored the code in order to not assign to the loop counter from within...