First iteration of the cursor working