Keep g_settings as a 'static' variable rather than a direct object.