Use the logger instead of puts