Serialization added to map-reduce