Merging the scripts to a unique one