Don't be don't be reliant on app.prefs being available.