Updated set method to check a setting is set, and update if needed.