Broken, with debug output to diagnose