Implemented dynamic loading of ads.