Update core.cc