Add a method to write text.