Improved settings handling, support user specified settings in Preferences file