Correctly write MessageList which contains more then one message