This will change the behaviour. nevt is incremented every time the function is called. Given this is crap in any case, and not used anywhere, I guess you can just drop it...