Changed awk statement to uniq to remove duplicates