Added RegisterMessageHandler().