Recoded the core.