Use "ad" extension and make the extension configurable