This is just a demo, probably doesn't work (haven't tested it) but it shows the general changes needed to implement an alternative to !597. Tagging @svanstro and @lrambell.