Made cgc optional