Adding to D3D functionality.