Fixed syntax and duplicates.