Update core.lua