Rebuild the script