Maybe not *quite* what you wanted to hear, but it IS a robust solution.