Add support to save and load configuration file