Sprinkled in a few more print statements for additional debugging.