Again, confused about the usage of `$app` here since we are declaring globals above...