Sorry, I meant does this whole function needs to be run on app activation? It might be out of the scope of this PR but it seems wasteful to reset the app every time it activates.