Something I did for @kaiwokcam a long long time ago but forgot to post here.