Converting list into a table.