Messaging and notification should be synchronized, for thread safety.