Rewrite core parts