Prevent integer rollover and too large of values for timeout option