Added WriteParagraph function