Added message_type field

Added message_type field to indicate what type of message we are
sending.