Works, with code general enough to apply to osmo-pcu