Put in debug prints to figure out why the heck this thing is core dumping.