Added reduce class.