Updated to use new reduce from persistent