Continued working on the paragraph fragmenting function