@mcc This is great. I believe I, or rather Emma, unknowingly used a variant of this algorithm in Emma Goldcoin: github.com/wgmyers/egx