Adding map_reduce