Update core-script.sh