Added a text method which can be called to return plain text.