Added support for custom titles in message handler.