Use logger instead of simple print