Here's a proof-of-concept for tackling issue #430.