Added some config serialization stuff