I'll pull this out for a separate PR. I was exploring this about 6 months ago.