Modified to include test for non unique associations