Gem combining program for GC2:CS - Written in C.