Added SerializeCorefData for a preprocessing step