Added a sort -u to remove duplicates.