* Add map and reduce functions.