Hi! Thanks for your quick answers. Erik's solution seems to be very simple and useful. If I will have enough time, I will try to make a separate library based on it.