added announcement code and built logic for it.