Convert lists to tables