Excellent. Matthew's hand-crafted solution does indeed work perfectly. Here it is on Complib: https://complib.org/composition/52629?accessKey=0b38fd5cbef1646c1bdc889ad2ebca9b5bfb21e0 Graham