Thanks to beautflstranger for some inspiration on this one.