Better output on logging and PWM