Moved d3d functionality into chain.