Thanks for your answer.

I'll try to apply the hints and code you've given me.