Perform settings checking again partially reverting 43917ef.

Also storedSettings to prefs as it is shorter, easier to read the code.