Added function to toggle highlighting cursor.