Got the cursor moving to the correct place, tracking data positions, inserting characters at correct locations.