Added list reduce but it generates some errors.