Added settings saving.