Ads Logic modified