Keep code iterate the cursor only.