Update Core.cpp