Use logger instead of puts