Changed print statements to work with new log system