Changed formatter to use symbols instead of strings for message type.