Tweaked math.