Reworked check for settings.