Convert more simple loops to iterate with pointers.