Restructured loops