Add cpc automation logic