Using logger instead of print.