Some other lines were moved around so that debug logging will work at the time of acceleration check.