nit: activeApp sounds there's inactive app. I expected to use `instance` wording here. What do you think?