Use logger instead of println