Happy to get it right in the immediate term ;o)  Think I understand what's needed, although could probably use a steer on how to unit test.