Good thinking. It's not pretty but it works. Thanks.

Maybe it can be hidden inside a template?