Ahh I see. That is an elegant way to do it, but seems rather tricky to implement in practice. None-the-less the job is done now!