No longer crashes, but output is not consistent (or correct)