Update log, math.