Got map/reduce working for duplicates