Hello
After some thinking i can rewrite this patch in another way.
This is better or worse?
regards, Sergei