Debug the loop