Added code to replace the cursor