Use logger instead of debug