Does this want to be added to a debouncer to stop it from running after every keypress? I can imagine it is possibly quite costly on long documents on slower machines.