Finalized d2 kernel work