Reduce now works, just need to return the result to the caller