Common usage map-reduce functions.