Added AddCFlag function