Script and document update