Maybe the two references to `this` could be replaced by references to `self` (which is set in `initialize`) so that you can just call the function normally without having to call it with `.call` and pass `this` to it.