Updated generic notice function