Added config file saving