Fixed the math in several places, mostly LBBB.