Added map and reduce.