Added very ineffective way to filter duplicates