New version of the script