Serializing and deserializing of settings