Added macc code of CG application just in case