Added an array for faster reduction calc.