Updated script to latest version