Removed unneeded parseInt from reduce function.