Added TextWriter class.