Created new infrastructure for table merging logic