Check for overflow.