Implement new mapper/reducer logic