Rebuilds core