Missed some print statements. Ought to just use the logging module.