Added templatized supportFunction to CCD supportFunction.