documentUpdate redesigned. Works now. More concise as well.