pathChan is no longer global. Pass it into the walkFunc closure.