Added some lines to modify settings without settings file.