Added two ways of scheduling local notifications.