Was bitten by the RuntimeError foretold in comments. Fixed, finally.