This is work to save application preferences.