Added functionality for multiple target table comparisons.