Implemented a major message handler