Reconstruct code in Core