Core rewritten.