Remove debug code from init_core