Added inner reduce, failing on reducing atm