Something I did for @BenVlodgi on CodeReview.