Now my problem is that I would like to be able to log changes. My first thought is that I could simply change the object which changeText function runs on to a paragraph. Then verify whether or not the change has been made by comparing the paragraph before and after, if a change has occured then I would append the page number and the paragraph to a text file. Seems to me though there may be a more elegant way to go about this. Any suggestions?