Update core.sh