Wrote a reducer for current camxes output