Use application state struct