Updated access to App for setting global variables.