Migrate the for statement