Moving config saving up sooner, so it doesn't get cut off before saving.