This is broke, but it may be close to right