I have read somewhere on the Example's section ( i can't find again that thread, i remember Malba32/guinness was there ) it would be better don't use ProcessExist in a loop but another internal function.
If i remember well, ProcessExist do an array of all process and then check if process exist and add it in a loop can be slow the entire script.
Someone can confirm this?