Added code to write the config table to disk