Source Code for CG Plug-in