Updated core.c by C