Added methods to set notifications.