I used the Unique udf but that now comes up with an error about my array being out of bounds