Update core and cg