Thanks - I'll take a look.

I agree this feels more model than controller - it was a while ago, but I think I recall bumping into some reason why it couldn't work in the model. I'll have a head scratch and see what emerges.