Added ad_apply