Implemented a message dispatcher for global messaging