Added example of using messageHandler