Debugged the cursor. Completed a full run successfully