Use logger instead of print statements.