Use logger instead of print