FWIW, I'm a bit concerned about the double for loop inside choose_plan_name(), especially since the outer loop runs with a true condition. Maybe I'm just worrying over nothing, as we probably don't expect a large number of subroots in practice, but the nested loops still make me a little uneasy.
- Richard
