Saving the message type along with the values array