I'm quite sure you miss a lot of changes in this file too. notably `repeatWithDelay`, and `observe` that calls app.observePerfEvents that you removed.

And they're not the easiest ones...