Paragraph function modified