Hi, the first patch fixes the problem reported in id:87wprt2r4f.fsf at zancas.localnet. Patch 2/3 is just refactoring. Patch 3/3 is reaction to id:87y4cc3qse.fsf at zancas.localnet; I'm not sure whether it addresses exactly what David had in mind, but IMHO it is an improvement. Cheers. -Michal