Adapted Ads to run from XML, another attempt at fixing long-resume crash.