Added functionality to add adverts