Turns out horrible hacks are needed.