Update core.c

Take 2...