Updated smartbanner code