It's not pretty, but the cube seems to work.