Avoid flickering of editor when executing the script.