Added inner list writing in WriteMessage.