Changed notifications generation logic.