Added inner loop function