Refactored insert mark tracking to use a virtual event.