Fix duplicate items, add named parameters through hashes.