bestPulseWidth is incorrect, but everything else works