Add method to set the new notification hash.