Updated script and documentation