Changed document update method