Added the code for ads