Improved task selection for notification