Changed from print to logger