Now uses settings file