The core Notifications code.