For real this time, actually an endl got moved into a for loop and was breaking everything