I'm a moron, but now it works