Swapped a lot of print statements for Log statements