it's just that I have about a thousand wait calls.
You could write a function, f.i. wait_log(var frames), that uses engine_gettaskinfo, some diag functions and wait(frames). Now press [Ctrl]+[H] in SED and let wait(1) automatically be replaced with wait_log(1). Continue with your other script files.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual