Add removeDeadEnds experimentally