Updated to use new term::WriterWrapper.