Move globals to app.settings