Convert mess to table