Changed print() to log().