First version of the script