Move from print statements to using the logging module.