Added dual iteration for loop