Fixed disheslist bug, modified algorithm, still not tested