Serialize configs.