Changed some math.