Update map reduce functions