Added math.min to wait