Changed print to logger calls