Debugged remove highlights code so it does a better job removing code that was inserted