Added map/filter/reduce for all the functions.