Added config saving.