Indeed it could be more optimized, I'll see about that later on, but note that this purely a question of optimization not correctness. If MaxCount=PartialWidths=nil then you are using the wrong routine. -- Felipe Monteiro de Carvalho