Added SerializeTextListToOstream