Adding config writing