Move print statements to logger entries