Got reduce working