'table1dDS' and 'table2dDS' re-written from scratch.