Added settings persistance.