Functions are turning into a drag as the thing isn't checked until invoked. Kind of a bummer.

I've ended up tossing cursors and just doing for loops on the query.