Added debug to print functino names before mapreduce.