It will probably be easier if you provide code examples. But I think Sebastiani might have nailed this one.