Add logging to derivative checker.