Intelliplug: update core.c