Added message type setter