Fixed build issue after adding TextWriter functions