Finish the algorithm of building CGS from an MCGB