Added support for external advert secret key